package com.rfid.system.domain;

import com.rfid.common.annotation.Excel;
import com.rfid.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 成品对象 t_item_info
 *
 * @author ruoyi
 * @date 2020-11-27
 */
public class TItemInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 单品号:产品编号+序列号
     */
    @Excel(name = "单品号:产品编号+序列号")
    private String itemNo;

    /**
     * $column.columnComment
     */
    @Excel(name = "单品号:产品编号+序列号")
    private String epc;

    /**
     * 产品信息id
     */
    @Excel(name = "产品信息id")
    private String productInfoId;

    /**
     * $column.columnComment
     */
    @Excel(name = "tid")
    private String tid;

    private String locationType;

    /**
     * 经纬度
     */
    private String longitudeLatitude;

    private String ip;

    /**
     * 预留字段,保存格式为json字段
     */
    @Excel(name = "预留字段,保存格式为json字段")
    private String field;

    //生成成品数量
    private Integer productNum;

    //产品名称
    private String productName;

    //单据号
    public  String documentNo;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setItemNo(String itemNo) {
        this.itemNo = itemNo;
    }

    public String getItemNo() {
        return itemNo;
    }

    public void setEpc(String epc) {
        this.epc = epc;
    }

    public String getEpc() {
        return epc;
    }

    public void setProductInfoId(String productInfoId) {
        this.productInfoId = productInfoId;
    }

    public String getProductInfoId() {
        return productInfoId;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getTid() {
        return tid;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getField() {
        return field;
    }

    public String getLocationType() {
        return locationType;
    }

    public void setLocationType(String locationType) {
        this.locationType = locationType;
    }

    public String getLongitudeLatitude() {
        return longitudeLatitude;
    }

    public void setLongitudeLatitude(String longitudeLatitude) {
        this.longitudeLatitude = longitudeLatitude;
    }


    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }


    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getDocumentNo() {
        return documentNo;
    }

    public void setDocumentNo(String documentNo) {
        this.documentNo = documentNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("itemNo", getItemNo())
                .append("epc", getEpc())
                .append("productInfoId", getProductInfoId())
                .append("tid", getTid())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("field", getField())
                .toString();
    }
}
